<div class="row contentBox">
    <app-sidebar-task></app-sidebar-task>
    <div class="" [ngClass]="{'contentArea_rightDiv1 right-full':isActive, 'contentBox1 right-off':!isActive }">
        <div class="row txtTitle">
            <div class="form-group pull-right" *ngIf="right['template']['query']">
                <span class="pull-left form-span span_left_search">启用状态：</span>
                <select class="form-control select-style" name="status" (change)="search()" [(ngModel)]="status">
                    <option value="">全部</option>
                    <option value="0">启用</option>
                    <option value="-1">禁用</option>
                </select>
            </div>
            <input *ngIf="right['template']['query']" matInput type="text" class="input_style" #queryCriteria="ngModel" name="searchData" placeholder="请输入模板名称"
                (input)="changesearch()" (keyup.enter)="changesearch()" [(ngModel)]="searchData"/>
            <button *ngIf="right['template']['query']" class="btn btn-search btn-blue" style="margin-right: 10px;" (click)="search()"
                mat-button>查询
            </button>
            <button *ngIf="right['template']['create']" class="btn btn-blue" data-toggle="modal" mat-button data-target="#templateAdd"
                (click)="initService._init(1)">新增</button>

            <button *ngIf="right['template']['batchDelete']" class="btn btn-orange" data-toggle="modal" [disabled]="removeTableService?._isEmpty()"
                data-target="#templateDelete" mat-button>删除</button>

        </div>
        <!-- 表格 BEGIN -->
        <app-template-table #table></app-template-table>
        <!-- 表格 end -->

        <!-- 分页 BEGIN -->
        <app-pagination [getTotalItems]="table.total" (isLoadTableFromPagination)="_pagination($event)">
        </app-pagination>
        <!-- 分页 END -->
    </div>
</div>
<!--content  end-->

<!--新增弹窗 BEGIN-->
<app-template-add (onSubmit)="table.getMetaDataTemplateList()"></app-template-add>
<!--新增弹窗 END-->

<!-- 删除 BEGIN -->
<app-template-delete (delete)="table.getMetaDataTemplateList()"></app-template-delete>
<!-- 删除 BEGIN -->
